package com.le.tester.imooc.oldfairy.coding.annotation;

/**
 * createTime：2023/5/19 10:21
 * description：TimeUsageAspect
 */
public class TimeUsageAspect implements IAspect {
    long start;

    @Override
    public void before() {

        start = System.currentTimeMillis();
    }

    @Override
    public void after() {

        long usage = System.currentTimeMillis() - start;
        System.out.format("time usage : %dms\n", usage);
    }
}
